package com.hlw.springboot.mapper;

import com.hlw.springboot.entity.SysConfig;
import com.hlw.springboot.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysConfigMapper {
    int insert(SysConfig record);

    int insertSelective(SysConfig record);

    //layui前台可根据条件进行查询
    List<SysConfig> list(@Param("params") Map<String, Object> params, @Param("offset") Integer offset, @Param("limit") Integer limit);

    int count(@Param("params") Map<String, Object> params);

    //layui table表格中行列进行编辑修改
    int updateById(@Param("params") Map<String, Object> params);


    //获取所有配置
    @Select("select * from sys_config")
    List<SysConfig> findAll();

}